package cn.itrip.common;

import lombok.Data;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author:小伟
 * @Description:
 * @Date:2020-03-11 20:20
 **/
@Data
public class ListUtil<T> {
    /**
     * 实体类列表
     */
    private List<T> list;

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "ListUtil{" +
                "list=" + list +
                '}';
    }

    public void ListUtil(List<T> list){
        List<T> list1=list.stream().collect(Collectors.toList());
        //内容
        this.list= (list1);
    }
}
